<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2023/3/17
  Time: 9:26
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Register Page</title>
</head>
<body>
<h1>Register page</h1>
<form action="/employee" method="post">
  <input type="hidden" name="action" value="register">

  <input type="text" name="name" placeholder="NAME" required>
  <br>
  <input type="password" name="password" placeholder="PASSWORD" required>
  <br>
  <input type="number" name="age" placeholder="AGE" required>
  <br>
  Gender
  <input type="radio" name="gender" checked="checked" value="M">Male
  <input type="radio" name="gender" value="F">Female
  <br>
  <input type="submit" value="register">
</form>

<%
  out.print(application.getAttribute("application-key"));
  out.print("<br>");
  out.print(session.getAttribute("session-key"));
  out.print("<br>");
  out.print(request.getAttribute("request-key"));
  out.print("<br>");
  out.print(pageContext.getAttribute("page-key"));
%>

</body>
</html>



